﻿using Microsoft.AspNet.SignalR;
using Microsoft.Owin;
using Owin;
using StructureMap;

[assembly: OwinStartup(typeof(WebApp.Initialization.OwinStartup))]
namespace WebApp.Initialization
{
    public class OwinStartup
    {
        public void Configuration(IAppBuilder app)
        {
            ClientEndPoint.Initialize();

            var resolver = ObjectFactory.GetInstance<IDependencyResolver>();

            var config = new HubConfiguration
            {
                Resolver = resolver
            };

            app.MapSignalR(config);
        }
    }
}
